package cn.ztydata.teachingsystem.heaven.web.dto;

import org.hibernate.validator.constraints.NotEmpty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 教师评分Dto
 * Created by wyh on 2015/3/26.
 */
public class TeacherScoreDto {
    @NotNull
    @Min(value = 1, message = "群组ID不合法")
    private Long groupId; //课程群组ID

    @NotNull
    @Min(value = 1, message = "课程ID不合法")
    private Long courseId; //课程ID

    @NotNull
    @Min(value = 1, message = "章ID不合法")
    private Long chapterId; //章ID

    @NotNull
    @Range(min = 1, max = 5, message = "评分不合法")
    private Integer score; //分数

    @NotNull
    @Min(value = 1, message = "学生ID不合法")
    private Long studentId; //学生ID

    @NotEmpty
    @Size(max = 300, message = "评语长度不合法")
    private String suggest; //评语

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public Long getChapterId() {
        return chapterId;
    }

    public void setChapterId(Long chapterId) {
        this.chapterId = chapterId;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }

    public String getSuggest() {
        return suggest;
    }

    public void setSuggest(String suggest) {
        this.suggest = suggest;
    }
}
